package FinalExam;

/**
 * @Author 28021
 * @Date 2022/12/27
 */
 interface Com {
    int f(int x,int y);
}
class  People implements Com{
     public int f(int x,int y){
         return x*y;
     }
     int g(int a ,int b){
         return  a+b;
     }
}
class E3{
    public static void main(String[] args) {
        Com com =new People();
        int m=com.f(3,5);
        People p=(People) com;
        System.out.printf("%d:%d",m,p.g(3,5));
    }
}